import request from '@/utils/request'

// 查询favorable列表
export function listFavorable(query) {
  return request({
    url: '/system/favorable/list',
    method: 'get',
    params: query
  })
}

// 查询favorable详细
export function getFavorable(id) {
  return request({
    url: '/system/favorable/' + id,
    method: 'get'
  })
}

// 新增favorable
export function addFavorable(data) {
  return request({
    url: '/system/favorable',
    method: 'post',
    data: data
  })
}

// 修改favorable
export function updateFavorable(data) {
  return request({
    url: '/system/favorable',
    method: 'put',
    data: data
  })
}

// 删除favorable
export function delFavorable(id) {
  return request({
    url: '/system/favorable/' + id,
    method: 'delete'
  })
}
